import request from '@/utils/request'

// 查询有效期延期记录列表
export function listDelayrecord(query) {
  return request({
    url: '/wm/delayrecord/list',
    method: 'get',
    params: query
  })
}

// 查询有效期延期记录详细
export function getDelayrecord(id) {
  return request({
    url: '/wm/delayrecord/' + id,
    method: 'get'
  })
}

// 新增有效期延期记录
export function addDelayrecord(data) {
  return request({
    url: '/wm/delayrecord',
    method: 'post',
    data: data
  })
}

// 修改有效期延期记录
export function updateDelayrecord(data) {
  return request({
    url: '/wm/delayrecord',
    method: 'put',
    data: data
  })
}

// 删除有效期延期记录
export function delDelayrecord(id) {
  return request({
    url: '/wm/delayrecord/' + id,
    method: 'delete'
  })
}
